//
//  WMTrainingController.m
//  ChannelSoftWeMarketing
//
//  Created by channelsoftios on 17/7/31.
//  Copyright © 2017年 channelsoftios. All rights reserved.
//

#import "WMHTMLViewController.h"
#import "WMHTMLView.h"

@interface WMHTMLViewController ()

@property (strong, nonatomic) WMHTMLView *webView;

@end

@implementation WMHTMLViewController

- (instancetype)init {
    if (self = [super init]) {
        self.showProgressView = YES;
    }
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = self.webViewTitle;
    
    if (self.hideLeftItem) {
        self.navigationItem.hidesBackButton   = YES;
        self.navigationItem.leftBarButtonItem = nil;
    }
    
    _webView = [[WMHTMLView alloc] initWithFrame:self.webViewRect];
    _webView.htmlUrl = self.htmlUrl;
    _webView.canScroll = self.canScroll;
    _webView.webViewRect = self.webViewRect;
    _webView.gameIdStr = self.gameIdStr;
    _webView.isBouncesStr = self.isBouncesStr;
    
    [self.view addSubview:_webView];
}

@end
